package com.changanw.tienchin.contract.service;

import com.changanw.tienchin.common.core.domain.AjaxResult;
import com.changanw.tienchin.contract.domain.Contract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.changanw.tienchin.contract.domain.vo.ContractApproveInfo;
import com.changanw.tienchin.contract.domain.vo.ContractSummary;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author changanw
 * @since 2023-12-12
 */
public interface IContractService extends IService<Contract> {

  AjaxResult uploadContractFile(HttpServletRequest request, MultipartFile file);

  AjaxResult deleteContractFile(String year, String month, String day, String name);

  AjaxResult geContractInfoPhone(String phone);

  AjaxResult addContract(Contract contract);

  List<ContractSummary> getUnApproveTask();

  AjaxResult getContractById(Integer contractId);

  AjaxResult showContractPDF(String year, String month, String day, String name);

  List<ContractSummary> getCommittedTask();

  AjaxResult approveOrReject(ContractApproveInfo contractApproveInfo);

  List<ContractSummary> approvedTask();

  AjaxResult updateContract(Contract contract);
}
